package zy.wq.common;

import java.io.Serializable;

public class InvocationResult implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4233267493059821172L;
	
	public final static String SUCCESS = "success";
	public final static String FAILED = "failed";

	private String result = SUCCESS;
	
	private String code;
	
	private String message;
	
	public InvocationResult() {}
	
	public InvocationResult(String result) {
		this.result = result;
	}
	
	public InvocationResult(String result,String code,String message) {
		this.result = result;
		this.code = code;
		this.message = message;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
